﻿<UserControl x:Class="MOJ.Control_PluginsSettings"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="344" d:DesignWidth="319">
    <Grid x:Name="_grid">
        <ListView Margin="10,10,10,35" x:Name="_listView">
            <ListView.ItemTemplate>
                <DataTemplate>
                    <StackPanel Orientation="Vertical">
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding PluginName}" IsEnabled="{Binding IsActivated}"/>
                            <TextBlock Text="(" IsEnabled="{Binding IsActivated}"/>
                            <TextBlock Text="{Binding Plugin.PluginVersion}" IsEnabled="{Binding IsActivated}"/>
                            <TextBlock Text=")" IsEnabled="{Binding IsActivated}"/>
                            <TextBlock Text=" by " IsEnabled="{Binding IsActivated}"/>
                            <TextBlock Text="{Binding Plugin.PluginDeveloper}" IsEnabled="{Binding IsActivated}"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Plugin.PluginDescription}" IsEnabled="{Binding IsActivated}" TextAlignment="Center"/>
                        </StackPanel>
                        <StackPanel Orientation="Horizontal">
                            <TextBlock Text="{Binding Plugin.PluginWeb}" IsEnabled="{Binding IsActivated}" TextAlignment="Center"/>
                        </StackPanel>
                    </StackPanel>
                </DataTemplate>
            </ListView.ItemTemplate>
        </ListView>
        <Button x:Name="_btnActivation" Content="Activate" HorizontalAlignment="Left" Margin="10,0,0,10" VerticalAlignment="Bottom" Width="70"/>
        <Button x:Name="_btnRemove" Content="Remove" HorizontalAlignment="Left" Margin="85,0,0,10" VerticalAlignment="Bottom" Width="75"/>
        <Button x:Name="_btnInstall" Content="Install" HorizontalAlignment="Right" Margin="0,0,10,10" VerticalAlignment="Bottom" Width="75"/>
    </Grid>
</UserControl>
